package org.bigtree.example.common.frame.config;

import org.bigtree.example.common.frame.filter.PvCounterHandler;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author bigTree
 * @since 2025/6/14
 */
@Configuration
public class FilterConfig {
    @Bean
    public FilterRegistrationBean<PvCounterHandler> filterRegistrationBean() {
        FilterRegistrationBean<PvCounterHandler> registrationBean = new FilterRegistrationBean<>();
        registrationBean.setFilter(new PvCounterHandler());
        return registrationBean;
    }
}
